//index.js
//获取应用实例
import http from "../../utils/http.js";

const app = getApp();

Page({
  data: {
    userInfo: {},
    active: 0
  },
  onLoad: function() {},
  onChangeTab(event) {
    // event.detail 的值为当前选中项的索引
    if (event.detail == 0) {
      wx.setNavigationBarTitle({
        title: "鸣谦"
      });
    } else if (event.detail == 1) {
      wx.setNavigationBarTitle({
        title: "消息"
      });
    } else {
      wx.setNavigationBarTitle({
        title: "我的"
      });
    }
    this.setData({ active: event.detail });
  }
});
